<?php
exit;
exit;
set_time_limit(0);
var_dump($_POST);
echo "<br />";
if (isset($_POST['vtd']) && isset($_POST['tm'])){
    include '../c/config.php';
    $id=substr(trim($_POST['vtd']), 3);
    $mysqli = new mysqli($dbhost, $dbuser, $dbpwd, $dbName);
    if (!$mysqli->set_charset("utf8")) {printf("Error loading character set utf8: %s\n", $mysqli->error);}
    $mysqli->query("INSERT INTO `danxuan` (`id`, `uid`, `yhtj`,`createtime`) VALUES (NULL,'".$id."', '".addslashes(json_encode($_POST['tm'], JSON_UNESCAPED_UNICODE))."', '".date("Y-m-d H:i:s")."')");
    $mysqli->close();
    
    echo "INSERT INTO `danxuan` (`id`, `uid`, `yhtj`,`createtime`) VALUES (NULL,'".$id."', '".json_encode($_POST['tm'], JSON_UNESCAPED_UNICODE)."', '".date("Y-m-d H:i:s")."')";
    
    
}

$type='';
$userId=1;
$tId=1;
$tData='我们';

$getData=array($tId=>$tData);
file_put_contents('../data/timu/'.$userId.'-'.$tId.'.txt', json_encode($getData, JSON_UNESCAPED_UNICODE));

//echo $_SERVER['SERVER_ADDR'];

if (isset($_POST['t'])){
    
}


?>